<?php
session_save_path('sessions');
session_start();
include("include/header.php");
?>
<body>
  <div id="wrapper">
    <div id="header"> </div>
    <div id="left">
      <div id="logo">
        <h1>Home Sale</h1>
        <p>Only By Owner</p>
      </div>
      <div id="nav">
        <ul>
          <li><a href="index.php">Home</a></li>
          <li><a href="main_login.php">Login</a></li>
          <li class="important"><a href="register.php">Register</a></li>
          <li><a href="searchhouse.php">Search House</a></li>
          <li><a href="logout.php">Logout</a></li>
        </ul>
      </div>
      <div id="news">
        <?php include("adgeneratorleft1.php");?>
        <div class="hr-dots"> </div>
        <?php include("adgeneratorleft2.php");?>
      </div>
      <div id="support"></div>
    </div>
    <div id="right">
      <h2>Register</h2>
      <div id="welcome">
          <?php
          if (isset($_SESSION['emailExists'])) {
              ?><div id="error"><?php echo $_SESSION['emailExists']; ?></div>
              <?php
              unset($_SESSION['emailExists']);
          }
          ?>
        <?php include("include/registerForm.php");?>
      </div>
    </div>
    <div class="clear"> </div>
    <div id="spacer"> </div>
    <div id="footer">
      <div id="copyright">
        &copy; Template taken from http://www.freewebsitetemplates.com/
      </div>
	  <div id="footerline"></div>
    </div>
	
  </div>
</body>
</html>